/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-07-15
 * Time: 10:03
 */
public class Test2 {
    public static void main(String[] args) {
        try {
            int[] arr = null;
            System.out.println(arr.length);
        }catch (NullPointerException e){
            e.printStackTrace();
            System.out.println("捕获到了一个空指针异常");
        }
        System.out.println("我是其他逻辑代码");
    }
}
